package org.laobai.permission.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiusan
 * @since 2021-11-17
 */
@TableName("t_area")
public class Area implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Integer id;

    @TableField("code")
    private String code;

    @TableField("name")
    private String name;

    @TableField("pid")
    private Integer pid;

    @TableField("lft")
    private Integer lft;

    @TableField("rgt")
    private Integer rgt;

    @TableField("name_en")
    private String nameEn;

    @TableField("short_name_en")
    private String shortNameEn;

    @TableField("is_show")
    private Boolean isShow;

    @TableField(exist = false)
    private List<Area> children;

    public List<Area> getChildren() {
        return children;
    }

    public void setChildren(List<Area> children) {
        this.children = children;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }
    public Integer getLft() {
        return lft;
    }

    public void setLft(Integer lft) {
        this.lft = lft;
    }
    public Integer getRgt() {
        return rgt;
    }

    public void setRgt(Integer rgt) {
        this.rgt = rgt;
    }
    public String getNameEn() {
        return nameEn;
    }

    public void setNameEn(String nameEn) {
        this.nameEn = nameEn;
    }
    public String getShortNameEn() {
        return shortNameEn;
    }

    public void setShortNameEn(String shortNameEn) {
        this.shortNameEn = shortNameEn;
    }
    public Boolean getShow() {
        return isShow;
    }

    public void setShow(Boolean isShow) {
        this.isShow = isShow;
    }

    @Override
    public String toString() {
        return "Area{" +
            "id=" + id +
            ", code=" + code +
            ", name=" + name +
            ", pid=" + pid +
            ", lft=" + lft +
            ", rgt=" + rgt +
            ", nameEn=" + nameEn +
            ", shortNameEn=" + shortNameEn +
            ", isShow=" + isShow +
        "}";
    }
}
